Skip to content

Face Blurring Tool #469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gulcihanglmz
Copy link

Face Blurring Tool - AI-Powered Privacy Protection with Real-time Processing

Summary

Added a comprehensive face blurring tool that automatically detects and blurs faces in images, videos, and live webcam feeds using multiple AI detection methods (Haar Cascades, MediaPipe, DNN). The tool provides an easy-to-use interface with customizable blur effects and supports batch processing.

Description

This PR introduces a professional-grade face blurring tool designed for privacy protection and content moderation. The tool combines multiple computer vision techniques to provide accurate face detection with various blur effects.

The changes are as follows:

  • face_blur.py - Main comprehensive tool with multiple detection methods and blur types
  • demo.py - Interactive demo script for easy testing with real images, webcam capture, or test patterns
  • requirements.txt - All necessary dependencies (OpenCV, MediaPipe, NumPy)
  • README.md - Complete documentation with quick start guide and usage examples

Checks

in the repository
Made no changes that degrades the functioning of the repository
Gave each commit a better title (unlike updated README.md)

  • 🔍 Multiple AI Detection Methods: Haar Cascades (fast), MediaPipe (accurate), DNN (highest quality)
  • 🌊 Various Blur Effects: Gaussian blur, motion blur, and pixelation
  • 📸 Multiple Input Sources: Images, videos, webcam feeds, batch processing
  • Real-time Processing: Optimized for live webcam with adjustable performance
  • 🎛️ Highly Customizable: Adjustable blur intensity, detection sensitivity, output formats

in the PR

Followed the format of the pull_request_template
Made the Pull Request in a small level
Tested the changes you made

Developer Note:

The face detection sensitivity can be fine-tuned by modifying the hardcoded confidence values in the detect_faces_dnn and _init_mediapipe_detector methods within face_blur.py.

Thank You,

Gulcihan Gulmez

@DhanushNehru DhanushNehru requested a review from Copilot July 21, 2025 15:21
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a comprehensive face blurring tool that automatically detects and blurs faces in images, videos, and live webcam feeds using multiple AI detection methods. The tool provides real-time processing capabilities with customizable blur effects and supports batch processing operations.

Key changes include:

  • Implementation of a complete face detection and blurring system with multiple AI methods (Haar Cascades, MediaPipe, DNN)
  • Interactive demo script for testing functionality with various input sources
  • Comprehensive documentation with quick start guide and usage examples

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.

File Description
Face Blurring Tool/face_blur.py Main tool implementation with FaceBlurrer class, multiple detection methods, and CLI interface
Face Blurring Tool/demo.py Interactive demonstration script with webcam capture and test pattern generation
Face Blurring Tool/README.md Complete documentation with installation instructions and usage examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant